Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cli/command/volume: various fixes and improvements in tests #5782

Merged
merged 5 commits into from
Feb 3, 2025

Conversation

thaJeztah
Copy link
Member

cli/command/volume: TestVolumeCreateErrors: assert unhandled errors

cli/command/volume: TestVolumeCreateWithName: minor fixes and improvements

  • assert unhandled error
  • use sub-tests
  • add test-case for conflicting options (both flag and name)
  • reset command-args to prevent test failing when running from pre-compiled test-binary
  • use a const and a slightly more unique name for the volume-name
  • discard stdout/stderr output

cli/command/volume: TestVolumeCreateWithFlags: minor fixes

  • assert unhandled error
  • reset command-args to prevent test failing when running from pre-compiled test-binary
  • use a const and a slightly more unique name for the volume-name
  • discard stdout/stderr output

cli/command/volume: TestVolumeCreateCluster: minor fixes and refactor

  • assert unhandled error
  • use sub-tests
  • use slightly more unique volume-names
  • discard stdout/stderr output

cli/command/volume: TestVolumeCreateClusterOpts: minor fixes and refactor

  • assert unhandled error
  • discard stdout/stderr output

- Description for the changelog

- A picture of a cute animal (not mandatory but encouraged)

@thaJeztah thaJeztah added this to the 28.0.0 milestone Feb 1, 2025
@thaJeztah thaJeztah self-assigned this Feb 1, 2025
@codecov-commenter
Copy link

codecov-commenter commented Feb 1, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 59.43%. Comparing base (4808d1b) to head (31b8198).
Report is 6 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #5782      +/-   ##
==========================================
+ Coverage   59.42%   59.43%   +0.01%     
==========================================
  Files         347      347              
  Lines       29398    29398              
==========================================
+ Hits        17469    17472       +3     
+ Misses      10957    10954       -3     
  Partials      972      972              

cmd.Flags().Set("topology-preferred", "region=R1,zone=Z2")
cmd.Flags().Set("topology-preferred", "region=R1,zone=Z3")

cmd.Execute()
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This test was ... not testing 😂

@thaJeztah thaJeztah requested a review from a team February 3, 2025 11:29
…ments

- assert unhandled error
- use sub-tests
- add test-case for conflicting options (both flag and name)
- reset command-args to prevent test failing when running from pre-compiled test-binary
- use a const and a slightly more unique name for the volume-name
- discard stdout/stderr output

Signed-off-by: Sebastiaan van Stijn <[email protected]>
- assert unhandled error
- reset command-args to prevent test failing when running from pre-compiled test-binary
- use a const and a slightly more unique name for the volume-name
- discard stdout/stderr output

Signed-off-by: Sebastiaan van Stijn <[email protected]>
- assert unhandled error
- use sub-tests
- use slightly more unique volume-names
- discard stdout/stderr output

Signed-off-by: Sebastiaan van Stijn <[email protected]>
…ctor

- assert unhandled error
- discard stdout/stderr output

Signed-off-by: Sebastiaan van Stijn <[email protected]>
@thaJeztah thaJeztah merged commit d68c4d8 into docker:master Feb 3, 2025
89 checks passed
@thaJeztah thaJeztah deleted the volume_tests_clean branch February 3, 2025 12:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants